package com.flyan.game.motafx.core.util.bgm;

import com.almasb.fxgl.dsl.FXGL;

/**
 * 背景音乐实用工具
 *
 * @author flyan
 * @version 1.0
 * @email flyan_by_chenu@sina.com
 * @since 2025/1/31
 */
public class BgmUtils {

    private static final String bgmAssetNamePrefix = "bgm/";

    private BgmUtils() {  }

    /**
     * 播放背景音乐
     *
     * @param bgmName 背景音乐名称
     */
    public static void play(String bgmName) {
        FXGL.loopBGM(bgmAssetNamePrefix + bgmName);
    }

}
